package com.grape.vo;

import java.util.Objects;

/**
 * 类描述： ShareUserVo类
 *
 * @author  putao
 * @email   2628279194@qq.com
 */
public class ShareUserVO {
    /**
     * 用户id
     */
    private String userId;
    /**
     * 用户名
     */
    private String username;
    /**
     * 用户头像
     */
    private String userAvatar;

    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getUserAvatar() {
        return userAvatar;
    }

    public void setUserAvatar(String userAvatar) {
        this.userAvatar = userAvatar;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        ShareUserVO that = (ShareUserVO) o;
        return Objects.equals(userId, that.userId) && Objects.equals(username, that.username) && Objects.equals(userAvatar, that.userAvatar);
    }

    @Override
    public int hashCode() {
        return Objects.hash(userId, username, userAvatar);
    }
}
